package vsqlbuilder.gui;

import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JLabel;
import javax.swing.JPanel;


public class StatusBar extends JPanel {
	
	static final long serialVersionUID = 0L; //TODO [low]: temporary fix, must be change to correct one
	
	private JLabel leftLabel;
	
	private JLabel rightLabel;
	
	public StatusBar(){
		
		this.setPreferredSize(new Dimension(100, 18));
		this.setLayout(new GridBagLayout());

		GridBagConstraints constraints = new GridBagConstraints();
		constraints.anchor = GridBagConstraints.FIRST_LINE_START;
		constraints.fill = GridBagConstraints.BOTH;
		constraints.insets = new Insets(1, 2, 1, 2);
	    
		leftLabel = new JLabel("Left");
	    constraints.weightx = 1.0;
	    constraints.gridx = 0;
		this.add(leftLabel, constraints);

		rightLabel = new JLabel("right");
		constraints.weightx = 0.0;
		constraints.gridx = 1;
		this.add(rightLabel, constraints);
	}
}
